package com.bort.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("cost")
public class Cost {

    @TableId("id")
    private Integer id;

    @TableField("order_id")
    private Integer orderId;

    /**
     * 1 补货,2电费,3工资,4成本,5其他
     */
    @TableField("cost_type")
    private Integer costType;

    @TableField("total_amount")
    private BigDecimal totalAmount;

    @TableField("goods_id")
    private Integer goodsId;

    @TableField("goods_name")
    private String goodsName;

    @TableField("stock")
    private Integer stock;

    @TableField("description")
    private String description;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user_id")
    private Integer createUserId;
}
